﻿using Wilson.ORMapper;

namespace Touchmax
{
    static public class Manager
    {
        static private ObjectSpace engine;

        static public ObjectSpace ORManager
        {
            get
            {
                return engine;
            }
        }

        static Manager()
        {
            string cnString = System.Configuration.ConfigurationManager.ConnectionStrings["SqlConnectString"].ConnectionString;
            engine = new ObjectSpace("Mapper.config", cnString, Provider.MsSql);  
        }
    }
}
